package com.guguju.ssms.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by dell on 2022-5-18.
 */
public class UserInfoData implements Parcelable {
    private UserInfo userInfo;

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(userInfo, flags);
    }
    public UserInfoData() {
    }

    protected UserInfoData(Parcel in) {
        this.userInfo =in.readParcelable(UserInfo.class.getClassLoader());

    }

    public static final Parcelable.Creator<UserInfoData> CREATOR = new Parcelable.Creator<UserInfoData>() {
        @Override
        public UserInfoData createFromParcel(Parcel source) {
            return new UserInfoData(source);
        }

        @Override
        public UserInfoData[] newArray(int size) {
            return new UserInfoData[size];
        }
    };

}
